import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 查询结果列表
export function listWeatherInfo(query) {
    return request({
        url: '/signal/weather/info/list',
        method: 'get',
        params: query
    })
}

// // 查询结果详细
// export function getUser(userId) {
//     return request({
//         url: '/system/user/' + parseStrEmpty(userId),
//         method: 'get'
//     })
// }

// 新增任务
export function addWeatherInfo(data) {
    return request({
        url: '/signal/weather/info',
        method: 'post',
        data: data
    })
}

// 修改任务
export function updateWeatherInfo(data) {
    return request({
        url: '/signal/weather/info',
        method: 'put',
        data: data
    })
}

// 删除任务
export function delWeatherInfo(cnIds) {
    return request({
        url: '/signal/weather/info/' + cnIds,
        method: 'delete'
    })
}